package testPackage;

public class Test {
    public static void main(String[] args) {
        Student zhangsan = new Student();
        int money = zhangsan.getMoney(); // 得到的就是 return 的值
        System.out.println(money);

        // 获取 打印
        System.out.println("分数：" + zhangsan.getScore());

        // 设置
        zhangsan.setScore(-2);

        // 获取 打印
        System.out.println("分数：" + zhangsan.getScore());



//        System.out.println(zhangsan.score);
//        zhangsan.score = 20;
//        System.out.println(zhangsan.score);
    }
}
